#include<iostream>
using namespace std;
void letra(string &cadena, char caracter);
int main ()
{
    string cadena;
    char car;
    cin>>cadena;
    cin>>car;
    letra(cadena,car);
    cout<<cadena;
}
void letra(string &cadena, char caracter)
{
    cadena=cadena+caracter;

return;

}

